#include "stdafx.h"
#include "MyUtil.h"
#include <stdio.h>
#include <windows.h>
#include <stdarg.h>

void dwprintf(wchar_t *format, ...)
{
    va_list args;
    va_start( args, format );

    wchar_t buf[1024];
    vswprintf_s<sizeof buf/sizeof buf[0]>(buf, format, args);
    OutputDebugStringW(buf);
}

void dcprintf(char *format, ...)
{
    va_list args;
    va_start( args, format );

    char buf[1024];
    vsprintf_s<sizeof buf/sizeof buf[0]>(buf, format, args);
    OutputDebugStringA(buf);
}
